package com.ctshk.rpc.air.req;

import com.ctshk.rpc.air.req.airStrategy.AirProductSaleStrategyData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value = "AirProductSaleStrategyBatchReq",description = "批量设置手动机票产品上架策略Req")
public class AirProductSaleStrategyUpdateReq implements Serializable {
    private static final long serialVersionUID = -7660741232222396337L;

    @ApiModelProperty(value = "手动机票产品Id集合",required = true)
    private List<Long> airProductIds;

    @ApiModelProperty(value = "手动机票上架策略集合",required = true)
    private List<AirProductSaleStrategyData> airProductSaleStrategyReqList;

        /**生成测试数据方法*/
//    public static void main(String[] args) {
//        AirProductSaleStrategyUpdateReq airProductSaleStrategyUpdateReq = new AirProductSaleStrategyUpdateReq();
//        List<Long> airProductIds = Lists.newArrayList();
//        airProductIds.add(1369269771534974978l);
//        airProductSaleStrategyUpdateReq.setAirProductIds(airProductIds);
//
//        List<AirProductSaleStrategyData> airProductSaleStrategyReqList = Lists.newArrayList();
//
//        airProductSaleStrategyReqList.add(p1());
//        airProductSaleStrategyUpdateReq.setAirProductSaleStrategyReqList(airProductSaleStrategyReqList);
//        System.out.println(JSON.toJSONString(airProductSaleStrategyUpdateReq, SerializerFeature.DisableCircularReferenceDetect));
//
//    }
//
//    public static  List<AirProductStrategyTimeData> getTime(){
//        List<AirProductStrategyTimeData> times = Lists.newArrayList();
//        AirProductStrategyTimeData airStrategyTimeDTO = new AirProductStrategyTimeData();
//        airStrategyTimeDTO.setStatr(LocalDate.now());
//        airStrategyTimeDTO.setEnd(LocalDate.now().plusDays(10));
//        AirProductStrategyTimeData airStrategyTimeDTO1 = new AirProductStrategyTimeData();
//        airStrategyTimeDTO1.setStatr(LocalDate.now().plusDays(12));
//        airStrategyTimeDTO1.setEnd(LocalDate.now().plusDays(30));
//        times.add(airStrategyTimeDTO);
//        times.add(airStrategyTimeDTO1);
//        return  times;
//    }

//    public static AirProductSaleStrategyData p1(){
//        AirProductSaleStrategyData airProductSaleStrategyReq = new AirProductSaleStrategyData();
//        airProductSaleStrategyReq.setName("测试策略1");
//        airProductSaleStrategyReq.setAirProductStrategyTimeData(getTime());
//        AirProductChannelofflineSelfData airProductChannelofflineSelfReq =new AirProductChannelofflineSelfData();
//        airProductChannelofflineSelfReq.setVisableType(3);
//        List<AirProductOfflineCustomData> airProductOfflineCusReqList = Lists.newArrayList();
//        AirProductOfflineCustomData airProductOfflineCusReq =new AirProductOfflineCustomData();
//        airProductOfflineCusReq.setRelationId(1l);
//        airProductOfflineCusReq.setCheckType(1);//部门
//        airProductOfflineCusReq.setName("测试部门一");
//        AirProductSaleStrategyDataInfoData airProductStrategyDataReq = new AirProductSaleStrategyDataInfoData();
//        airProductStrategyDataReq.setAdjustType(1);//加数字
//        airProductStrategyDataReq.setAmount(new BigDecimal(200));
//        airProductStrategyDataReq.setPercent(0d);
//        airProductStrategyDataReq.setIsLimit(1);//限购
//        airProductStrategyDataReq.setLimitNum(10);
//        airProductOfflineCusReq.setAirProductSaleStrategyDataInfoData(airProductStrategyDataReq);
//        airProductOfflineCusReqList.add(airProductOfflineCusReq);
//        AirProductOfflineCustomData airProductOfflineCusReq1 =new AirProductOfflineCustomData();
//        airProductOfflineCusReq1.setRelationId(2l);
//        airProductOfflineCusReq1.setCheckType(2);//员工
//        airProductOfflineCusReq1.setName("测试员工一");
//        AirProductSaleStrategyDataInfoData airProductStrategyDataReq1 = new AirProductSaleStrategyDataInfoData();
//        airProductStrategyDataReq1.setAdjustType(1);//加数字
//        airProductStrategyDataReq1.setAmount(new BigDecimal(200));
//        airProductStrategyDataReq1.setPercent(0d);
//        airProductStrategyDataReq1.setIsLimit(1);//限购
//        airProductStrategyDataReq1.setLimitNum(10);
//        airProductOfflineCusReq1.setAirProductSaleStrategyDataInfoData(airProductStrategyDataReq1);
//        airProductOfflineCusReqList.add(airProductOfflineCusReq1);
//        airProductChannelofflineSelfReq.setAirProductOfflineCustomDataList(airProductOfflineCusReqList);
//        airProductSaleStrategyReq.setAirProductChannelofflineSelfData(airProductChannelofflineSelfReq);
//
//
//        AirProductChannelOfflineAgentData airProductChannelOfflineAgentReq =new AirProductChannelOfflineAgentData();
//        airProductChannelOfflineAgentReq.setVisableType(3);
//        List<AirProductOfflineCustomData> airProductOfflineCusReqList1 = Lists.newArrayList();
//        AirProductOfflineCustomData airProductOfflineCusReq3 =new AirProductOfflineCustomData();
//        airProductOfflineCusReq3.setRelationId(1l);
//        airProductOfflineCusReq3.setCheckType(1);//部门
//        airProductOfflineCusReq3.setName("测试代理商一");
//        AirProductSaleStrategyDataInfoData airProductStrategyDataReq_A_1 = new AirProductSaleStrategyDataInfoData();
//        airProductStrategyDataReq_A_1.setAdjustType(1);//加数字
//        airProductStrategyDataReq_A_1.setAmount(new BigDecimal(200));
//        airProductStrategyDataReq_A_1.setPercent(0d);
//        airProductStrategyDataReq_A_1.setIsLimit(1);//限购
//        airProductStrategyDataReq_A_1.setLimitNum(10);
//        airProductOfflineCusReq3.setAirProductSaleStrategyDataInfoData(airProductStrategyDataReq_A_1);
//        airProductOfflineCusReqList1.add(airProductOfflineCusReq3);
//
//        AirProductOfflineCustomData airProductOfflineCusReq4 =new AirProductOfflineCustomData();
//        airProductOfflineCusReq4.setRelationId(2l);
//        airProductOfflineCusReq4.setCheckType(2);//员工
//        airProductOfflineCusReq4.setName("测试代理商一");
//        AirProductSaleStrategyDataInfoData airProductStrategyDataReq_A_2 = new AirProductSaleStrategyDataInfoData();
//        airProductStrategyDataReq_A_2.setAdjustType(1);//加数字
//        airProductStrategyDataReq_A_2.setAmount(new BigDecimal(200));
//        airProductStrategyDataReq_A_2.setPercent(0d);
//        airProductStrategyDataReq_A_2.setIsLimit(1);//限购
//        airProductStrategyDataReq_A_2.setLimitNum(10);
//        airProductOfflineCusReq4.setAirProductSaleStrategyDataInfoData(airProductStrategyDataReq1);
//        airProductOfflineCusReqList1.add(airProductOfflineCusReq4);
//        airProductChannelOfflineAgentReq.setAirProductOfflineCustomData(airProductOfflineCusReqList1);
//        airProductSaleStrategyReq.setAirProductChannelOfflineAgentData(airProductChannelOfflineAgentReq);
//
//
//        AirProductOnlineSelfPlatformData airProductOnlineSelfPlatformReq = new AirProductOnlineSelfPlatformData();
//        airProductOnlineSelfPlatformReq.setChannelId(1l);
//        airProductOnlineSelfPlatformReq.setChannelName("官方渠道1");
//        AirProductSaleStrategyDataInfoData airProductStrategyDataReq_G_1 = new AirProductSaleStrategyDataInfoData();
//        airProductStrategyDataReq_G_1.setAdjustType(1);//加数字
//        airProductStrategyDataReq_G_1.setAmount(new BigDecimal(200));
//        airProductStrategyDataReq_G_1.setPercent(0d);
//        airProductStrategyDataReq_G_1.setIsLimit(1);//限购
//        airProductStrategyDataReq_G_1.setLimitNum(10);
//        airProductOnlineSelfPlatformReq.setAirProductSaleStrategyDataInfoData(airProductStrategyDataReq_G_1);
//        AirProductOnlineSelfPlatformData airProductOnlineSelfPlatformReq1 = new AirProductOnlineSelfPlatformData();
//        airProductOnlineSelfPlatformReq1.setChannelId(2l);
//        airProductOnlineSelfPlatformReq1.setChannelName("官方渠道2");
//        AirProductSaleStrategyDataInfoData airProductStrategyDataReq_G_2 = new AirProductSaleStrategyDataInfoData();
//        airProductStrategyDataReq_G_2.setAdjustType(1);//加数字
//        airProductStrategyDataReq_G_2.setAmount(new BigDecimal(200));
//        airProductStrategyDataReq_G_2.setPercent(0d);
//        airProductStrategyDataReq_G_2.setIsLimit(1);//限购
//        airProductStrategyDataReq_G_2.setLimitNum(10);
//        airProductOnlineSelfPlatformReq1.setAirProductSaleStrategyDataInfoData(airProductStrategyDataReq_G_2);
//        List<AirProductOnlineSelfPlatformData> airProductOnlineSelfPlatformReqs = Lists.newArrayList();
//        airProductOnlineSelfPlatformReqs.add(airProductOnlineSelfPlatformReq);
//        airProductOnlineSelfPlatformReqs.add(airProductOnlineSelfPlatformReq1);
//        airProductSaleStrategyReq.setAirProductOnlineSelfPlatformDataList(airProductOnlineSelfPlatformReqs);
//
//
//        AirProductOnlineThirdPlatformData airProductOnlineThirdPlatformReq = new AirProductOnlineThirdPlatformData();
//        airProductOnlineThirdPlatformReq.setPlatformId(1l);
//        airProductOnlineThirdPlatformReq.setPlatformName("第三方渠道1");
//        AirProductSaleStrategyDataInfoData airProductStrategyDataReq_T_1 = new AirProductSaleStrategyDataInfoData();
//        airProductStrategyDataReq_T_1.setAdjustType(1);//加数字
//        airProductStrategyDataReq_T_1.setAmount(new BigDecimal(200));
//        airProductStrategyDataReq_T_1.setPercent(0d);
//        airProductStrategyDataReq_T_1.setIsLimit(1);//限购
//        airProductStrategyDataReq_T_1.setLimitNum(10);
//        airProductOnlineThirdPlatformReq.setAirProductSaleStrategyDataInfoData(airProductStrategyDataReq_T_1);
//        AirProductOnlineThirdPlatformData airProductOnlineThirdPlatformReq1 = new AirProductOnlineThirdPlatformData();
//        airProductOnlineThirdPlatformReq1.setPlatformId(2l);
//        airProductOnlineThirdPlatformReq1.setPlatformName("第三方渠道2");
//        AirProductSaleStrategyDataInfoData airProductStrategyDataReq_T_2 = new AirProductSaleStrategyDataInfoData();
//        airProductStrategyDataReq_T_2.setAdjustType(1);//加数字
//        airProductStrategyDataReq_T_2.setAmount(new BigDecimal(200));
//        airProductStrategyDataReq_T_2.setPercent(0d);
//        airProductStrategyDataReq_T_2.setIsLimit(1);//限购
//        airProductStrategyDataReq_T_2.setLimitNum(10);
//        airProductOnlineThirdPlatformReq1.setAirProductSaleStrategyDataInfoData(airProductStrategyDataReq_T_2);
//
//        List<AirProductOnlineThirdPlatformData> airProductOnlineThirdPlatformReqList = Lists.newArrayList();
//        airProductOnlineThirdPlatformReqList.add(airProductOnlineThirdPlatformReq);
//        airProductOnlineThirdPlatformReqList.add(airProductOnlineThirdPlatformReq1);
//        airProductSaleStrategyReq.setAirProductOnlineThirdPlatformDataList(airProductOnlineThirdPlatformReqList);
//        return  airProductSaleStrategyReq;
//    }
}
